package com.up.upzl.biz.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.up.upzl.biz.domain.BusinessArea;
import com.up.upzl.biz.service.BusinessAreaService;

/**
 * 拍店控制器
 * 
 * @author geeks
 *
 */
@Controller
@RequestMapping("businessArea")
public class BusinessAreaController {

	@Autowired
	private BusinessAreaService businessAreaService;

	@GetMapping("getByAreaId")
	public @ResponseBody List<BusinessArea> getByAreaId(Long area) {
		return businessAreaService.findByAreaId(area);
	}

}
